package com.wzx.ptplatform.service;

import com.wzx.ptplatform.domain.User;
import com.wzx.ptplatform.utils.PtplatformException;

/**
 * @author 紫煦桉
 */
public interface UserService {

    /**
     * 管理员登录 login
     * @param user
     * @return
     * @throws PtplatformException
     */
    User login(User user) throws PtplatformException;

    /**
     * 重置 修改 忘记 密码 resetPassword
     * @param user
     * @return
     * @throws PtplatformException
     */
    boolean resetPassword(User user) throws PtplatformException;

    /**
     * findById
     * @param id
     * @return
     * @throws PtplatformException
     */
    User findById(long id) throws PtplatformException;
}
